#import <Foundation/Foundation.h>

// Program obliczajcy sm liczb trjktn

int main (int argc, char *argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int triangularNumber;

    triangularNumber = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8;

    NSLog (@"Warto smej liczby trjktnej wynosi %i", triangularNumber);

    [pool drain];
    return 0;
}